package ru.ifmo.segal.utils;

/**
 * @author avhaliullin
 */
public class Segmentation {
    private final Double start;
    private final Double step;
    private final int count;

    public Segmentation(Double start, Double step, int count) {
        this.start = start;
        this.step = step;
        this.count = count;
    }

    public Double getStart() {
        return start;
    }

    public Double getStep() {
        return step;
    }

    public int getCount() {
        return count;
    }

    public double getValue(int stepNum) {
        return start + step * stepNum;
    }
}
